import { AstContext } from "../../../context";
import { PageVisitor } from "../pageVisitor";

export interface SwipeContext {
    currentTabActivateIndex: number;
}
export function parseSwipe(visitor: PageVisitor, ast: AutoJs.UiObject, ctx: AstContext) {
    // const viewPager = ctx.bfsOne(ast, it => it.className() === `androidx.viewpager.widget.ViewPager` && it.visibleToUser())
    // if (viewPager) {
    //     const viewPager2 = ctx.bfsOne(viewPager, it => it !== viewPager && it.visibleToUser() && it.className() === `androidx.viewpager.widget.ViewPager`)
    //     if (viewPager2) {
    //         ctx.eachChild(viewPager2, (node, index) => {
    //             const visibleToUser = node.visibleToUser()
    //             if (visibleToUser) {
    //                 ctx.set('topTabIndex', index)
    //             }
    //         })
    //     }
    // }
    return false;
}